package com.ask.common.enumeration;

public enum ResultCode {
    SUCCESS(100, "success"),
    FAIL(200, "fail"),
    ERROR(300, "error"),
    BAD_REQUEST(400, "请求参数错误"),
    INTERNAL_ERROR(500, "系统内部错误");

    private final int code;
    private final String msg;

    ResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
